import { Socket } from "socket.io";

/**
 * 节点计算机
 * @param socket 
 */
function namespace(socket: Socket) {
  console.log('has conn node');
  
  socket.on('n-c-conn', () => {
    socket.emit('c-n-conn', {
      code: 2000,
      msg: 'success'
    })
  })

  socket.on('disconnect', () => {
    console.log('node disconnect');
    
  })


}



export default namespace

